--localize for performance
local upper = string.upper
local sub = string.sub

function string.capitalize_first(str)
	return upper(sub(str, 1, 1)) .. sub(str, 2)
end